package com.yljk.homedoctor.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yljk.homedoctor.R;
import com.yljk.homedoctor.model.entity.HomeDoctorDetailEntity;

import java.util.List;

public class DoctorGuideAdapter extends BaseQuickAdapter<HomeDoctorDetailEntity.DataBean.DocumentListBean.ListBean, BaseViewHolder> {
    public DoctorGuideAdapter( @Nullable List<HomeDoctorDetailEntity.DataBean.DocumentListBean.ListBean> data) {
        super(R.layout.doctor_guide_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HomeDoctorDetailEntity.DataBean.DocumentListBean.ListBean item) {
        if (helper.getPosition() == 0){
            helper.setVisible(R.id.doctorGuideView,false);
        }
        helper.setText(R.id.doctorGuideContent,item.getTitle());
    }
}
